import VueRouter from 'vue-router'

import HomeContainer from './components/tabbar/HomeContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import ShopcartContainer from './components/tabbar/ShopcartContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import NewList from './components/news/NewsList.vue'
import NewsInfo from './components/news/NewsInfo.vue'
import PhotoList from './components/photos/photoList.vue'
import PhotoInfo from './components/photos/photoInfo.vue'

var router=new VueRouter({
    routes:[
{ path: '/', component: HomeContainer },
{ path: '/home', component: HomeContainer },
{ path: '/member', component: MemberContainer },
{ path: '/shopcar', component: ShopcartContainer },
{ path: '/search', component: SearchContainer },
{ path: '/home/newslist',component:NewList},
{ path: '/home/newsinfo/:id',component:NewsInfo},
{ path: '/home/PhotoList',component:PhotoList},
{ path: '/home/PhotoInfo/:id',component:PhotoInfo}
    ],
    linkActiveClass:'mui-active'
})
export default router